package com.saclub.app.fragment;

import com.loopj.android.http.RequestParams;
import com.saclub.app.R;
import com.saclub.app.common.Constants.NewsTypeEnum;
import com.saclub.app.http.ApiRequest;


/**
 * sa club
 * 
 * @author li.li
 *
 */
public class MainTabSaClubFragment extends NewsListFragment {
	
	@Override
	protected void initView() {
		//标题
		caller.setTitle(R.string.main_tab_saclub_title);
		caller.getToolBar().setBackgroundColor(getResources().getColor(R.color.cl_title_saclub));

	}
	
	@Override
	protected void initData() {

		if (!isAdded())
			return;

		RequestParams params = new RequestParams();
		params.put("type_id", NewsTypeEnum.type_14.getType());
		
		ApiRequest.news.request(this, params);

	}
	
	
	@Override
	public void onBackPressed() {
	}
	
}
